package com.strategy.pattern.service;

import com.strategy.pattern.strategy.PromotionStrategy;

/**
 * @author cc
 * @classname PromotionActivity
 * @description 促销活动方案
 * @date 2022/3/27 20:57
 */
public class PromotionActivity {

    private PromotionStrategy promotionStrategy;

    public PromotionActivity(PromotionStrategy promotionStrategy) {
        this.promotionStrategy = promotionStrategy;
    }

    public void execute() {
        promotionStrategy.doPromotion();
    }

}
